package cn.efunbox.afw.core.entity;

public class Cache {
        private String key;//缓存ID
        private Object value;//缓存数据
        private long timeOut;//更新时间
        private long activeTime; //是否终止
        public Cache() {
                super();
        }

        public Cache(String key, Object value, long timeOut) {
                this.key = key;
                this.value = value;
                this.timeOut = timeOut;
        }
        public Cache(String key, Object value, long timeOut, long activeTime) {
                this.key = key;
                this.value = value;
                this.timeOut = timeOut;
                this.activeTime = activeTime;
        }

        public String getKey() {
                return key;
        }

        public void setKey(String key) {
                this.key = key;
        }

        public Object getValue() {
                return value;
        }

        public void setValue(Object value) {
                this.value = value;
        }

        public long getTimeOut() {
                return timeOut;
        }

        public void setTimeOut(long timeOut) {
                this.timeOut = timeOut;
        }

        public long getActiveTime() {
                return activeTime;
        }

        public void setActiveTime(long activeTime) {
                this.activeTime = activeTime;
        }
}